package api

import (
	"django_blog_gin/internal/svc"

	// "fmt"

	"github.com/gin-gonic/gin"
)

type accountHandler struct {
	Login            gin.HandlerFunc
	Refresh          gin.HandlerFunc
	Check            gin.HandlerFunc
	GetAuthGroupList gin.HandlerFunc
	GetUserDetail    gin.HandlerFunc
}

func NewAccountHandler(svcCtx *svc.ServiceContext) *accountHandler {
	return &accountHandler{
		Login:            NewLoginController(svcCtx),
		Refresh:          NewRefreshController(svcCtx),
		Check:            NewCheckController(svcCtx),
		GetAuthGroupList: NewGetAuthGroupList(svcCtx),
		GetUserDetail:    NewGetUserDetail(svcCtx),
	}
}
